﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.realtime {
    import Classes.*;
    import Transactions.*;
    import Classes.util.*;
    import Modules.stats.experiments.*;

    public class RealtimeMethods {

        public static function getFriendByZid(_arg1:String):Friend{
            var _local2:Friend;
            for each (_local2 in Global.friendbar) {
                if (_local2.uid == _arg1){
                    return (_local2);
                };
            };
            return (null);
        }
        public static function showAction(_arg1:String, _arg2:String, _arg3:String=null):void{
        }
        public static function showNeighborVisit(_arg1:String):void{
            var _local2:Player;
            var _local3:String;
            if (Global.experimentManager.getVariant(ExperimentDefinitions.EXPERIMENT_RT_NEIGHBOR_VISITS) == ExperimentDefinitions.RT_NEIGHBOR_VISITS){
                _local2 = Global.player.findFriendById(_arg1);
                if (_local2){
                    _local3 = ZLoc.t("Neighbors", "RtNeighborVisit", {user:ZLoc.tn(_local2.firstName, _local2.gender)});
                    GameTransactionManager.addTransaction(new TGetOrders(_local3));
                };
            };
        }

    }
}//package Modules.realtime 
